Skip to content

feat(alert-dashboard): move the Hub ops pages onto Section and ui-columns - #5546

Open
shepherdjerred wants to merge 1 commit into
mainfrom
feat/hub-ops-sections
Open

shepherdjerred wants to merge 1 commit into
mainfrom
feat/hub-ops-sections

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Hub ops pages still drew .panel blocks with hand-built headings; they now use the shared Section and .ui-columns (H3a).

What

  • Section-page signals, service detail, AI page, review lists/trend/incident blocks, product signals and the Storm page use Section; signal/service/review columns use .ui-columns.
  • Local grid rules, .spend-panel, .incident-panel, .signal-columns, .service-layout, .review-lists deleted. .panel, .panel-heading, .list-panel stay for H3b (reports, traces, brim) and the platform meter cards.
  • Tests migrated one for one (expect counts: ops.spec 1 changed assertion became 2; unit specs unchanged counts).

Demo

Page Before After
AI (light)
AI (dark)
AI (phone)
Maintenance (light)
Maintenance (dark)
Maintenance (phone)
Service detail (light)
Service detail (dark)
Service detail (phone)
Review (light)
Review (dark)
Review (phone)

Verification

  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/alert-dashboard: pass (416 unit tests)
  • bun run test:e2e (alert-dashboard): 161 pass; the suite has no visual snapshots
  • bunx lefthook run pre-commit: pass
  • Not run: verify:extended, live checks; conformance allowlist unchanged (no counts moved)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Dashboard panels now use a more consistent layout across AI, product, service, review, trend, incident, and Storm views.
    • Section headings and item counts are displayed more consistently, making panel contents easier to scan.
    • Usage and quota tables now have clear accessible labels.
  • Tests
    • Updated dashboard checks to reflect the current section layout and heading format.

…umns

Why
The ops pages still drew `.panel` blocks with hand-built headings. The layout
rule is HeaderBar, FigureStrip, then hairline-divided Sections.

What
- Section-page signals, service detail (signals, catalog, changes), AI page
  (spend, quota, tool usage, other signals), review lists and trend/incident
  blocks, product signals and the Storm page use the shared Section.
- Signal columns, service layout and review lists use `.ui-columns`; their
  local grid rules, `.spend-panel` and `.incident-panel` are deleted.
- `.panel`, `.panel-heading`, `.list-panel` stay: reports, traces, brim and
  platform meter cards (H3b) still use them.
- Quota and tool tables are labelled with aria-label since Section owns the
  heading id. Unit and e2e assertions migrated one for one.

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/alert-dashboard: pass
- bun run test:e2e in packages/alert-dashboard: 161 pass (no visual snapshots)
- bunx lefthook run pre-commit: pass
- Not run: verify:extended, live checks

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The alert dashboard replaces custom panel markup with shared section components across AI and operations pages. Table accessible labels, layout styles, and end-to-end assertions are updated to match the new markup.

Changes: Alert dashboard sections

Layer / File(s) Summary
AI panel sections
packages/alert-dashboard/src/client/ops/ai-page.tsx, packages/alert-dashboard/src/client/ops/ai-quota-table.tsx, packages/alert-dashboard/src/client/ops/ai-quota-table.test.tsx, packages/alert-dashboard/src/client/ops/ai-tool-spend.tsx, packages/alert-dashboard/src/client/ops/ai-tool-spend.test.tsx
AI spend, quota, and other-signal panels now use the shared Section component. Quota and tool-spend tables use explicit aria-label values instead of heading references.
Operations page sections
packages/alert-dashboard/src/client/ops/ops-ui.tsx, packages/alert-dashboard/src/client/ops/pages/*, packages/alert-dashboard/src/client/ops/review-page.tsx, packages/alert-dashboard/src/client/ops/section-page.tsx, packages/alert-dashboard/src/client/ops/service-page.tsx, packages/alert-dashboard/src/client/reports/digest-run-page.tsx
Trend, incident, product, Storm, review, signal, and service panels now use shared section components. Trend and incident panels no longer accept or receive explicit heading IDs.
Layout styles and end-to-end checks
packages/alert-dashboard/src/styles/globals.css, packages/alert-dashboard/e2e/ops.spec.ts
Styles update grid selectors and spend-note spacing. The end-to-end test checks for shared section panels and verifies the Maintenance heading and numeric count.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Refactor

Merge Risk: Minimal · up to 4ec0b

This restructures Hub ops pages onto the shared Section layout without changing the data shown. No concrete functional or availability risk was found, and the author reports passing unit and e2e tests. Visual spacing was not verified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(alert-dashboard): move the Hub ops pages onto Section and ui-columns" matches the main change in the changeset. The PR moves Hub ops pages from hand-built panel markup to the shared Se…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(alert-dashboard): move the Hub ops pages onto Section and ui-columns" matches the main change in the changeset. The PR moves Hub ops pages from hand-built panel markup to the shared Section component and the ui-columns layout class. The title is specific and does not list files. It does not mention the removed CSS rules, but it does not need to cover every detail.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b41f1cb and 4ec0b25.

Files selected for processing: 14

  • packages/alert-dashboard/e2e/ops.spec.ts
  • packages/alert-dashboard/src/client/ops/ai-page.tsx
  • packages/alert-dashboard/src/client/ops/ai-quota-table.test.tsx
  • packages/alert-dashboard/src/client/ops/ai-quota-table.tsx
  • packages/alert-dashboard/src/client/ops/ai-tool-spend.test.tsx
  • packages/alert-dashboard/src/client/ops/ai-tool-spend.tsx
  • packages/alert-dashboard/src/client/ops/ops-ui.tsx
  • packages/alert-dashboard/src/client/ops/pages/product-page.tsx
  • packages/alert-dashboard/src/client/ops/pages/the-storm-page.tsx
  • packages/alert-dashboard/src/client/ops/review-page.tsx
  • packages/alert-dashboard/src/client/ops/section-page.tsx
  • packages/alert-dashboard/src/client/ops/service-page.tsx
  • packages/alert-dashboard/src/client/reports/digest-run-page.tsx
  • packages/alert-dashboard/src/styles/globals.css

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 05:47
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@coderabbitai review

Automated re-review request for 4ec0b25 from the CI review gate.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@coderabbitai review

Automated re-review request for 4ec0b25 (attempt 2 of 2) from the CI review gate.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for 4ec0b25 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T06:15:11.671319Z 4ec0b25 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 4ec0b255ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant